package team.nmsg.photo.service;

import java.util.List;

import org.springframework.web.multipart.MultipartFile;

import com.alibaba.fastjson.JSONObject;

import team.nmsg.ge.system.bean.PageObject;
import team.nmsg.photo.bean.FeaturePhoto;
import team.nmsg.photo.bean.PhotoBean;
import team.nmsg.photo.bean.ProjectBean;

public interface IPhotoService {

	ProjectBean createProject(ProjectBean pb);

	ProjectBean getProject(String projectSeq);

	ProjectBean getProject(long parseLong);

	void setProjectsIsShow(String projectIdStrs, boolean parseBoolean);

	void setProjectsFinished(String projectIdStrs);

	List<Long> delProjects(String projectIdStrs);

	void editProject(ProjectBean pb);

	void delPhoto(String projectIdStr, String photoIdStr);

	PageObject<ProjectBean> getProjects(ProjectBean criteria, int pageSize, int startIndex);

	String editProjectPic(String utype, String pid, String newImg);

	PhotoBean saveImg(String projectIdStr, MultipartFile file);

	PageObject<PhotoBean> getPhotos(PhotoBean criteria, int parseInt, int startIndex);

	void addAccessCount(long parseLong);

	PageObject<ProjectBean> getPros(ProjectBean criteria, int parseInt, int startIndex, boolean isGetActive);

	FeaturePhoto addFeature(FeaturePhoto featurePhoto);

	List<FeaturePhoto> getFeatures(FeaturePhoto featurePhoto);

	boolean delAFeature(FeaturePhoto featurePhoto);

	JSONObject getMainPage();

	PageObject<ProjectBean> getProsByCriteria(ProjectBean criteria, int parseInt, int startIndex);

	boolean resetPOrder();

}
